import request from '@/utils/request'

export default {
  // 列表
  query(data) {
    return request({
      url: `/v1/finance/invoice/list`,
      method: 'post',
      data
    })
  },
  // 上传回执
  upload(data) {
    return request({
      url: `/v1/finance/invoice/upload-list`,
      method: 'post',
      data
    })
  },
  // 获取回执文件
  print(data) {
    return request({
      url: `/v1/finance/invoice/get-upload`,
      method: 'post',
      data
    })
  },
  // 批量提交
  submit(data) {
    return request({
      url: `/v1/finance/invoice/batch-submit`,
      method: 'post',
      data
    })
  },
  // 编辑发票
  save(data) {
    return request({
      url: `/v1/finance/invoice/edit`,
      method: 'post',
      data
    })
  },
  // 发票明细
  detail(data) {
    return request({
      url: `/v1/finance/invoice/detail`,
      method: 'post',
      data
    })
  },
  //审核
  batch_audut(data) {
    return request({
      url: `/v1/finance/invoice/batch-audit`,
      method: 'post',
      data
    })
  },
  back_invoice(data){
    return request({
      url: `/v1/finance/invoice/batch-back`,
      method: 'post',
      data
    })
  }
}
